package net.gldwork.facadegen.apt;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Set;

import com.sun.mirror.apt.AnnotationProcessor;
import com.sun.mirror.apt.AnnotationProcessorEnvironment;
import com.sun.mirror.apt.AnnotationProcessorFactory;
import com.sun.mirror.declaration.AnnotationTypeDeclaration;

public class FacadeGenAPFactory implements AnnotationProcessorFactory {

	@Override
	public AnnotationProcessor getProcessorFor(
			Set<AnnotationTypeDeclaration> arg0,
			AnnotationProcessorEnvironment env) {

		return new FacadeGenAP(env);
	}

	@Override
	public Collection<String> supportedAnnotationTypes() {
		return annotations;
	}

	@Override
	public Collection<String> supportedOptions() {
		return Collections.emptyList();
	}

	private static ArrayList<String> annotations = new ArrayList<String>();

	{
		annotations.add("javax.ejb.Singleton");

	}

}